package com.pactera.madp.cp.api.feign;

import com.pactera.madp.common.core.constant.SecurityConstants;
import com.pactera.madp.common.core.constant.ServiceNameConstants;
import com.pactera.madp.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * RemoteMediumService
 *
 * @author jun
 * @version 1.0
 * 2021/7/5 10:30
 **/
@FeignClient(contextId = "remoteMediumService",value = ServiceNameConstants.CP_SERVICE)
public interface RemoteMediumService {

    /**
     * 话术库mediaId批量更新
     * @return
     */
    @GetMapping("/medium/save-media-id")
    boolean saveMediaId(@RequestHeader(SecurityConstants.FROM) String from);
}
